<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>GTK+ FAQ</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="NEXT"
TITLE="General Information"
HREF="c20.html"></HEAD
><BODY
CLASS="BOOK"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="BOOK"
><A
NAME="AEN1"
></A
><DIV
CLASS="TITLEPAGE"
><H1
CLASS="TITLE"
><A
NAME="AEN2"
>GTK+ FAQ</A
></H1
><H3
CLASS="AUTHOR"
><A
NAME="AEN6"
></A
>Tony Gale</H3
><H3
CLASS="AUTHOR"
><A
NAME="AEN9"
></A
>Shawn Amundson</H3
><H3
CLASS="AUTHOR"
><A
NAME="AEN12"
></A
>Emmanuel Deloget</H3
><HR></DIV
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
><A
HREF="c20.html"
>General Information</A
></DT
><DD
><DL
><DT
><A
HREF="c20.html#AEN22"
>Note: This FAQ is undergoing conversion to GTK+ 2.x</A
></DT
><DT
><A
HREF="x26.html"
>Before anything else: the greetings <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x52.html"
>Authors <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x81.html"
>What is GTK+? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x90.html"
>What is the + in GTK+? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x98.html"
>Does the G in GTK+, GDK and GLib stand for? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x104.html"
>Where is the documentation for GTK+? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x132.html"
>Is there a mailing list (or mailing list archive) for
GTK+? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x137.html"
>How to get help with GTK+ <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x141.html"
>How to report bugs in GTK+ <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x157.html"
>Is there a Windows version of GTK+? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x165.html"
>What applications have been written with GTK+? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
></DL
></DD
><DT
><A
HREF="c192.html"
>How to find, configure, install, and troubleshoot GTK+</A
></DT
><DD
><DL
><DT
><A
HREF="c192.html#FAQ-COMPILE"
>What do I need to compile GTK+? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x234.html"
>Where can I get GTK+? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x261.html"
>How do I configure/compile GTK+? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x278.html"
>When compiling GTK+ I get an error like: <TT
CLASS="LITERAL"
>make:
file `Makefile' line 456: Syntax error</TT
> <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x284.html"
>I've compiled and installed GTK+, but I can't get any
programs to link with it! <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x306.html"
>When installing a GTK+ application, configure reports
that it can't find GTK. <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
></DL
></DD
><DT
><A
HREF="c323.html"
>Development of GTK+</A
></DT
><DD
><DL
><DT
><A
HREF="c323.html#AEN325"
>Whats this CVS thing that everyone keeps talking about,
and how do I access it? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x359.html"
>How can I contribute to GTK+? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x367.html"
>How do I know if my patch got applied, and if not, why
not? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x373.html"
>What is the policy on incorporating new widgets into
the library? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x380.html"
>Is anyone working on bindings for languages other than
C? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
></DL
></DD
><DT
><A
HREF="c386.html"
>Development with GTK+: the begining</A
></DT
><DD
><DL
><DT
><A
HREF="c386.html#AEN388"
>How do I get started? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x394.html"
>How do I use the Glade GUI builder with GTK+? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x401.html"
>How do I write security sensitive/SUID/SGID programs with GTK+?
Is GTK+ secure? What's this GTK_MODULES security hole I heard about?
<I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x408.html"
>I tried to compile a small <B
CLASS="COMMAND"
>Hello World</B
> of mine,
but it failed. Any clue? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x425.html"
>What about using the <B
CLASS="COMMAND"
>make</B
>
utility? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x433.html"
>I use the backquote stuff in my makefiles, but my make
process failed. <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x439.html"
>I want to add some configure stuff, how could I do
this? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x461.html"
>I try to debug my GTK+ application with gdb, but it
hangs my X server when I hit some breakpoint. Any
Idea? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
></DL
></DD
><DT
><A
HREF="c475.html"
>Development with GTK+: general questions</A
></DT
><DD
><DL
><DT
><A
HREF="c475.html#AEN477"
>What widgets are in GTK?</A
></DT
><DT
><A
HREF="x481.html"
>Is GTK+ thread safe? How do I write multi-threaded GTK+
applications? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x491.html"
>I'm doing some stuff with GTK+ in a separate thread, and
properly locking with gdk_threads_enter/gdk_threads_leave()
but the display doesn't update properly. <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x499.html"
>What's an easy way to run a function in the thread with
the main loop? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x505.html"
>Why does this strange 'x io error' occur when I
<TT
CLASS="LITERAL"
>fork()</TT
> in my GTK+ app? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x518.html"
>Why don't the contents of a button move when the button
is pressed? Here's a patch to make it work that way... <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x526.html"
>How do I identifiy a widgets top level window or other
ancestor? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x539.html"
>How do I get the Window ID of a GtkWindow? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x544.html"
>How do I catch a double click event? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x555.html"
>By the way, what are the differences between signals
and events?</A
></DT
><DT
><A
HREF="x566.html"
>Data I pass to the <TT
CLASS="LITERAL"
>delete_event</TT
> (or other event)
handler gets corrupted.</A
></DT
><DT
><A
HREF="x572.html"
>I have my signal connected to the the (whatever) event,
but it seems I don't catch it. What's wrong?</A
></DT
><DT
><A
HREF="x580.html"
>I need to add a new signal to a GTK+ widget. Any
idea?</A
></DT
><DT
><A
HREF="x590.html"
>Is it possible to get some text displayed which is
truncated to fit inside its allocation?</A
></DT
><DT
><A
HREF="x596.html"
>How do I make my window modal? / How do I make a single
window active?</A
></DT
><DT
><A
HREF="x601.html"
>Why doesn't my widget (e.g. progressbar)
update? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x610.html"
>How do I attach data to some GTK+ object/widget?
<I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x623.html"
>How do I remove the data I have attached to an
object?</A
></DT
><DT
><A
HREF="x635.html"
>How do I reparent a widget?</A
></DT
><DT
><A
HREF="x642.html"
>How could I get any widgets position?</A
></DT
><DT
><A
HREF="x662.html"
>How do I set the size of a widget/window? How do I
prevent the user resizing my window? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x669.html"
>How do I add a popup menu to my GTK+ application?</A
></DT
><DT
><A
HREF="x674.html"
>How do I disable or enable a widget, such as a
button?</A
></DT
><DT
><A
HREF="x678.html"
>Shouldn't the text argument in the gtk_clist_*
functions be declared const?</A
></DT
><DT
><A
HREF="x684.html"
>How do I render pixels (image data) to the
screen?</A
></DT
><DT
><A
HREF="x690.html"
>How do I create a pixmap without having my window being
realized/shown?</A
></DT
><DT
><A
HREF="x696.html"
>How do I do drag-and-drop?</A
></DT
><DT
><A
HREF="x702.html"
>Why does GTK+/GLib leak memory?</A
></DT
></DL
></DD
><DT
><A
HREF="c707.html"
>Development with GTK+: widget specific questions</A
></DT
><DD
><DL
><DT
><A
HREF="c707.html#AEN709"
>How do I find out about the selection of a GtkList?</A
></DT
><DT
><A
HREF="x746.html"
>How do I stop the column headings of a GtkCList
disappearing when the list is scrolled?</A
></DT
><DT
><A
HREF="x752.html"
>I don't want the user of my applications to enter text
into a GtkCombo. Any idea?</A
></DT
><DT
><A
HREF="x759.html"
>How do I catch a combo box change?</A
></DT
><DT
><A
HREF="x769.html"
>How can I define a separation line in a menu?</A
></DT
><DT
><A
HREF="x774.html"
>How can I right justify a menu, such as Help?</A
></DT
><DT
><A
HREF="x780.html"
>How do I add some underlined accelerators to menu
items?</A
></DT
><DT
><A
HREF="x788.html"
>How can I retrieve the text from a GtkMenuItem?</A
></DT
><DT
><A
HREF="x798.html"
>How do I right (or otherwise) justify a
GtkLabel?</A
></DT
><DT
><A
HREF="x810.html"
>How do I set the background color of a GtkLabel
widget?</A
></DT
><DT
><A
HREF="x814.html"
>How do I set the color and font of a GtkLabel using a
Resource File?</A
></DT
><DT
><A
HREF="x828.html"
>How do I configure Tooltips in a Resource File?</A
></DT
><DT
><A
HREF="x833.html"
>I can't add more than (something like) 2000 chars in a
GtkEntry. What's wrong?</A
></DT
><DT
><A
HREF="x838.html"
>How do I make a GtkEntry widget activate on pressing
the Return key?</A
></DT
><DT
><A
HREF="x842.html"
>How do I validate/limit/filter the input to a GtkEntry? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x847.html"
>How do I use horizontal scrollbars with a GtkText widget?</A
></DT
><DT
><A
HREF="x850.html"
>How do I change the font of a GtkText widget?</A
></DT
><DT
><A
HREF="x856.html"
>How do I set the cursor position in a GtkText
object?</A
></DT
></DL
></DD
><DT
><A
HREF="c866.html"
>About GDK</A
></DT
><DD
><DL
><DT
><A
HREF="c866.html#AEN868"
>What is GDK?</A
></DT
><DT
><A
HREF="x871.html"
>How do I use color allocation?</A
></DT
></DL
></DD
><DT
><A
HREF="c875.html"
>About GLib</A
></DT
><DD
><DL
><DT
><A
HREF="c875.html#AEN877"
>What is GLib?</A
></DT
><DT
><A
HREF="x894.html"
>How can I use the doubly linked lists?</A
></DT
><DT
><A
HREF="x901.html"
>Memory does not seem to be released when I free the
list nodes I've allocated</A
></DT
><DT
><A
HREF="x908.html"
>Why use g_print, g_malloc, g_strdup and fellow glib
functions?</A
></DT
><DT
><A
HREF="x918.html"
>What's a GScanner and how do I use one?</A
></DT
></DL
></DD
><DT
><A
HREF="c957.html"
>GTK+ FAQ Contributions, Maintainers and Copyright</A
></DT
></DL
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="c20.html"
ACCESSKEY="N"
>Next &#62;&#62;&#62;</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>General Information</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>